<!-- announcementAdd -->
<?
include_once "settings.inc.php";
global $DB, $sess, $_SESSION;
?>
<style>
	label		{	font-family:Tahoma; font-size:12px; font-weight:bold; text-align:right;	}
	textarea {	position:relative; min-height:50px; background:#fff;	}
	.etiket	{	width:150px; min-height:30px; line-height:30px;	}
</style>

<script>
	$(function() {
		$( ".datetime" ).datepicker( {regional : "tr"} );

		$(".geri").click(function(){
			history.back(1);
		});
	});
	
	
</script>
<h2>PROJE EKLE</h2>
<form method="post" action="?<?=_MODULE_NAME?>.addProcess" method="POST" enctype="multipart/form-data" >
	<fieldset>
		<!-- <legend>Duyuru Ekleme</legend> -->
		<input type="hidden" name="userId" id="userId" value="1" />
		<table cellpadding="0" cellspacing="3" border="0" style="width:100%;">
			<tr>
				<td class="right etiket"><label for="category_idx">Proje Kategorisi : </label></td>
				<td>
					<select name="category_id" id="category_idx" class="mf">
						<?php
							$catSql = "SELECT id, category_name FROM " . _MODULE_NAME . "Category ORDER BY row ASC";
							$categorys = $DB->fetchArray($catSql);
							echo "<option value=''>Seçiniz...</option>";
							if(is_array($categorys[0])){
								foreach ($categorys as $cat)
									echo "<option value='" . $cat['id'] . "'>" . $cat['category_name'] . "</option>";
							}
						?>
					</select>
				</td>
			</tr>
			<tr>
				<td class="right etiket"><label for="project_typex">Proje Tipi : </label></td>
				<td>
					<select name="project_type" id="project_typex" class="mf">
						<?php
							$catSql = "SELECT id, type_name FROM " . _MODULE_NAME . "Type ORDER BY row ASC";
							$categorys = $DB->fetchArray($catSql);
							echo "<option value=''>Seçiniz...</option>";
							if(is_array($categorys[0])){
								foreach ($categorys as $type)
								echo "<option value='" . $type['id'] . "'>" . $type['type_name'] . "</option>";
							}
						?>
					</select>
				</td>
			</tr>
			<tr>
				<td class="right etiket"><label for="project_namex">Proje Adı : </label></td>
				<td><input class="mf" name="project_name" id="project_namex" type="text" value="" /></td>
			</tr>
			<tr>
				<td class="right etiket"><label for="contentx">İçerik : </label></td>
				<td><textarea name="content" id="contentx" class="tinymceMini" style="min-height:250px;"></textarea></td>
			</tr>
			<tr>
				<td class="right etiket"><label for="selectedx">Selected : </label></td>
				<td><input type="checkbox" name="selected" value='1' id="selectedx" /></td>
			</tr>
			<tr>
				<td class="etiket">&nbsp;</td>
				<td class="left">
					<input class="button" type="submit" value="Kaydet" />
					<input class="button geri" type="button" value="Geri" />
				</td>
			</tr>
		</table>
	</fieldset>
</form>
<!-- /announcementAdd -->		